﻿#ifndef EXCELREADER_H
#define EXCELREADER_H

#include <QObject>
#include "xlsxdocument.h"




class ExcelReader : public QObject
{
    Q_OBJECT
public:
    explicit ExcelReader(QObject *parent = nullptr);
    bool openFile(const QString& filePath);
    QStringList getSheetsName() const;
    bool selectSheet(const QString& sheetName) const;
    QXlsx::Worksheet* getWorkSheet() const;



signals:


private:
    std::unique_ptr<QXlsx::Document> p_doc;
};

#endif // EXCELREADER_H
